package com.qsq.newsmanager.dao;

import com.qsq.newsmanager.entity.News;

import java.util.List;

/**
 * 和新闻相关的Dao接口
 * Created by lining on 2017/3/28.
 */
public interface NewsDao {

    int insertNews(News news);

    /*根据ID查询对用新闻*/
    News queryById(long newsId);

    /*查询所有新闻*/
    List<News> queryAll();
}
